package com.cskaoyan.bean;

import java.util.Date;

/**
 * 创建日期: 2022/04/27 10:14
 *
 * @author ciggar
 */
public class User {

    Integer id;
    String name;

    Date birthday;

//    public User() {
//        System.out.println("调用到了无参构造方法");
//    }

    public User(Integer id, String name, Date birthday) {
        this.id = id;
        this.name = name;
        this.birthday = birthday;
        System.out.println("调用到了全参构造方法");
    }


    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                '}';
    }



    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
